package palindrome;

public class NumberIsPalindrome {

	public static void main(String[] args) {
		System.out.println(isPalindrome(56365));
	}
	public static boolean isPalindrome(int x) {
		String string = String.valueOf(x);
		String inverseString = new StringBuilder(string).reverse().toString();
		return string.equals(inverseString);
	}
}
